

 <div id="infobox" >
 <a href="{:U('Slide/index')}" style="float:right;">{:L(gobacklist)}</a>
 <a href="{:U('Slide/picmanage?fid='.$_GET[fid])}" class="ui-btn">{:L('return')} - {:L('images_manage')}</a>
</div>


<form name="myform" id="myform" action="<if condition="$action_name=='addpic'">{:U($module_name.'/insertpic')}<else />{:U($module_name.'/updatepic')}</if>" method="post">
<table cellpadding=0 cellspacing=0 class="table_form" width="100%">
	<tr>
		  <td width="120"><font color="red">*</font>{:L('title')}</td>
		  <td><input type="text" id="title" name="title" value="{$vo.title}" class="input-text" size="50" validate="required:true,cn_username:true, minlength:2, maxlength:20"/></td>
	</tr>

	<tr>
		  <td>{:L(link)}</td>
		  <td><input type="text" id="link" name="link" value="{$vo.link}" class="input-text" size="50" /></td>
	</tr>
	<tr>
		  <td>{:L(pic)}</td>
		  <td>
		   <div class="pic_box"  ><div id="pic_aid_box" style="display:none;"></div>
			<input type="text"  id="pic" name="pic"  value="{$vo['pic']}" class="input-text" size="40"/><input type="button" class="button" value="{:L(upload)}" onclick="javascript:swfupload('pic_uploadfile','pic','{:L(uploadfiles)}',1,1,0,10,'jpeg,jpg,png,gif',5,230,'{$yourphp_auth}',yesdo,nodo)" />  <a href="javascript:void(0);" onclick="showpicbox($('#pic').val());"> {:L(view)}</a></div>

		 </td>
	</tr>
	<tr>
		  <td>{:L(STATUS)}</td>
		  <td>{:Form::radio(array('field'=>'status','options'=>array('1'=>L('display_yes'),'0'=>L('display_no'))),$vo['status'])}</td>
	</tr>


</table>
<div  class="btn">
<if condition="$vo['id']!=''"><input TYPE="hidden" name="id" value="{$vo.id}"></if>
<input TYPE="hidden" name="fid" value="{$fid}">
<INPUT TYPE="submit"  value="{:L('dosubmit')}" class="button buttonBtn" >
<input TYPE="reset"  value="{:L('cancel')}" class="button">
</div>
</form>
</div>

</body></html>
